// GradeService.java 服务层接口
package com.example.studentmanagement2.service;

import com.example.studentmanagement2.dto.GradeDetail;
import com.example.studentmanagement2.model.Grade;

import java.util.List;

public interface GradeService {
    Grade recordGrade(Grade grade);

    List<GradeDetail> getGradeDetails(String studentId);
    List<GradeDetail> getGradesByCourse(String courseId);
}